﻿using System.ComponentModel;
using RaytracerLib.RenderableObjects;
using RaytracerLib.UVMappers;

namespace Raytracer.PropertyGridDecorators
{
    public class SuperellipsoidObjectProperties : RenderableObjectProperties
    {
        private SuperellipsoidObject m_superellipsoid;

        public SuperellipsoidObjectProperties(SuperellipsoidObject a_superellipsoid) :
            base(a_superellipsoid)
        {
            m_superellipsoid = a_superellipsoid;
        }

        [TypeConverter(typeof(DoubleConverter))]
        public double R
        {
            get
            {
                return m_superellipsoid.R;
            }
            set
            {
                m_superellipsoid.R = value;
            }
        }

        [Category(Categories.PROPERTIES)]
        [TypeConverter(typeof(DoubleConverter))]
        public double T
        {
            get
            {
                return m_superellipsoid.T;
            }
            set
            {
                m_superellipsoid.T = value;
            }
        }
    }
}